using Godot;
using System;

public partial class Bullet : Area2D
{
    public Vector2 Speed { get; set; }

    // Called when the node enters the scene tree for the first time.
    public override void _Ready()
    {
        //Position = new Vector2(300, 300);
        BodyEntered += Bullet_BodyEntered;
    }

    private void Bullet_BodyEntered(Node2D body)
    {
        QueueFree();
    }

    // Called every frame. 'delta' is the elapsed time since the previous frame.
    public override void _Process(double delta)
    {
        Position += Speed * (float)delta;
    }



}
